//  this library.
/// 广告数据模型
class BannerModel {
  String? createdTime;
  String? modifyTime;
  String? createdBy;
  String? modifyBy;
  String? id;

  // 考试id
  String? examId;

  // 行业id
  String? industryId;

  // 考试名
  String? examName;

  // 行业名
  String? industryName;

  // 标题
  String? title;

  // 排序
  int? sort;

  // 0.无图、1.单图 、2.多图
  int? pictureCount;

  // 简介
  String? introduction;

  // 封面
  String? cover;

  // 内容
  String? content;

  // 0.不跳转 1.跳转文本 2.跳转链接 3.内部跳转
  int? jumpType;

  // 跳转地址
  String? jumpUrl;

  // 广告位id
  String? positionCode;

  // 客户端 0.pc 1.app
  int? clientType;

  // 创建人
  String? createdName;

  BannerModel({
    this.createdTime,
    this.modifyTime,
    this.createdBy,
    this.modifyBy,
    this.id,
    this.examId,
    this.industryId,
    this.examName,
    this.industryName,
    this.title,
    this.sort,
    this.pictureCount,
    this.introduction,
    this.cover,
    this.content,
    this.jumpType,
    this.jumpUrl,
    this.positionCode,
    this.clientType,
    this.createdName,
  });

  BannerModel.fromJson(Map<String, dynamic> json) {
    createdTime = json['createdTime'];
    modifyTime = json['modifyTime'];
    createdBy = json['createdBy'];
    modifyBy = json['modifyBy'];
    id = json['id'];
    examId = json['examId'];
    industryId = json['industryId'];
    examName = json['examName'];
    industryName = json['industryName'];
    title = json['title'];
    sort = json['sort'];
    pictureCount = json['pictureCount'];
    introduction = json['introduction'];
    cover = json['cover'];
    content = json['content'];
    jumpType = json['jumpType'];
    jumpUrl = json['jumpUrl'];
    positionCode = json['positionCode'];
    clientType = json['clientType'];
    createdName = json['createdName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['createdTime'] = createdTime;
    data['modifyTime'] = modifyTime;
    data['createdBy'] = createdBy;
    data['modifyBy'] = modifyBy;
    data['id'] = id;
    data['examId'] = examId;
    data['industryId'] = industryId;
    data['examName'] = examName;
    data['industryName'] = industryName;
    data['title'] = title;
    data['sort'] = sort;
    data['pictureCount'] = pictureCount;
    data['introduction'] = introduction;
    data['cover'] = cover;
    data['content'] = content;
    data['jumpType'] = jumpType;
    data['jumpUrl'] = jumpUrl;
    data['positionCode'] = positionCode;
    data['clientType'] = clientType;
    data['createdName'] = createdName;
    return data;
  }
}
